import Vue from 'vue'
import App from './App'
import store from './store'
import resetData from './plugins/resetData'
import sleep from './utils/sleep'
import navigater from './utils/navigater'
import './utils/update'

console.log(`PLATFORM: ${mpvuePlatform}`)
console.log(`ENV: ${process.env.ENV_CONFIG}`)
console.log(`BASE_API: ${process.env.BASE_API}`)

// 安装插件
Vue.use(resetData)

// 绑定对象到 Vue 原型链
Vue.prototype.$store = store
Vue.prototype.$bus = new Vue()
Vue.prototype.$sleep = sleep
Vue.prototype.$navigater = navigater

Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue(App)
app.$mount()
